import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import "./plugins/element.js";
import "@/assets/css/global.css"
import TreeTable from 'vue-table-with-tree-grid'
//导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'


Vue.config.productionTip = false;
Vue.component('tree-table' , TreeTable)
//富文本编辑器挂载到全局
Vue.use(VueQuillEditor)


Vue.filter('dateFormat' , function(val){
  const dt = new Date(val)

  const y = dt.getFullYear()
  const m = (dt.getMonth() + 1 + '').padStart(2 , '0')
  const d = (dt.getDate() + '').padStart(2 , '0')
  return `${y}-${m}-${d}`
})


new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");

